<script setup lang="ts">
// @ts-ignore
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
// @ts-ignore
import en from 'element-plus/dist/locale/en.mjs'
import { ref, computed } from 'vue'

const language = ref('zh-cn')
const locale = computed(() => (language.value === 'zh-cn' ? zhCn : en))

const message = ref({
  max: 1,
  grouping: true
})

</script>

<template>
  <el-config-provider :message="message" :locale="locale">
    <router-view />
  </el-config-provider>
</template>

<style scoped>

</style>
